//
//  FilterViewController.h
//  quxiangtao
//
//  Created by xbmios on 2018/8/6.
//  Copyright © 2018年 shanhaijin. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef void (^SideSlipFilterCommitBlock)(NSArray *dataList);
typedef void (^SideSlipFilterResetBlock)(NSArray *dataList);


typedef void(^CommitBlock)(NSMutableString *commitStr);
typedef void(^ResetBlock)(NSMutableString *resetStr);
typedef void(^FilterViewDimissBlock)(BOOL isDimiss);


@interface FilterViewController : UIViewController

@property (assign, nonatomic) CGFloat animationDuration;
@property (assign, nonatomic) CGFloat sideSlipLeading;
@property (copy, nonatomic) NSArray *dataList;


- (instancetype)initWithSponsor:(UIViewController *)sponsor withCommitBlock:(CommitBlock)dataCommitBlock withViewDimissBlock:(FilterViewDimissBlock)dimissBlock;

- (instancetype)initWithSponsor:(UIViewController *)sponsor
                     resetBlock:(SideSlipFilterResetBlock)resetBlock
                    commitBlock:(SideSlipFilterCommitBlock)commitBlock withViewDimissBlock:(FilterViewDimissBlock)dimissBlock;

//- (instancetype)initWithSponsor:(UIViewController *)sponsor
//                     resetBlock:(SideSlipFilterResetBlock)resetBlock
//                    commitBlock:(SideSlipFilterCommitBlock)commitBlock;

- (void)show;
- (void)dismiss;
- (void)reloadListData;

@end

